package com.guldan.auth.provider.utils;

import com.guldan.auth.provider.dto.users.UsersDTO;
import com.guldan.mapper.db.entity.Users;

/**
 * Created by Silas.
 * Date: 2016/11/12
 * Time: 17:13
 */
public class DomainConvertUtils {

    public static UsersDTO convert(Users entity) {
        UsersDTO dto = new UsersDTO();
        dto.setUserId(entity.getUserId());
        dto.setUserName(entity.getUserName());
        return dto;
    }

}
